package com.gxl.Action;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.gxl.Entity.Content;
import com.gxl.Entity.StudentUser;
import com.gxl.Entity.User;
import com.gxl.Service.UserService;

public class Change_companyAction {

	private UserService UserService;
	private String companyid;
	private String companyname;
	private String change;
	public static HttpServletRequest request = null;
	public String change()
	{
		
		

		UserService.ChangeUserYes(companyid,companyname,change);
		
		return "ok";
	}
	public String change_1()
	{
		request = ServletActionContext.getRequest();
		List<User> userlist=new ArrayList<User>();
		userlist = UserService.FindAll();
		request.getSession().setAttribute("userlist", userlist);
		return "ok";
	}

	public UserService getUserService() {
		return UserService;
	}

	public void setUserService(UserService userService) {
		UserService = userService;
	}

	public String getCompanyid() {
		return companyid;
	}

	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}

	public String getCompanyname() {
		return companyname;
	}

	public void setCompanyname(String companyname) {
		this.companyname = companyname;
	}

	public String getChange() {
		return change;
	}

	public void setChange(String change) {
		this.change = change;
	}

	
}
